//
//  LSOtherButtonCell.m
//  lightSpot
//
//  Created by lightSpot  on 2022.
//  Copyright © 2022 lightSpot . All rights reserved.
//

#import "LSOtherButtonCell.h"

@implementation LSOtherButtonCell

+ (id)instanceView {
    NSArray* nibView =  [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:self options:nil];
    return [nibView objectAtIndex:0];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [_leftButton setTitle:@"服务条款" forState:UIControlStateNormal];
    [_centerButton setTitle:@"隐私政策" forState:UIControlStateNormal];
    [_rightButton setTitle:@"恢复购买" forState:UIControlStateNormal];
}

- (void)setData:(id)data delegate:(id)delegate {
    _delegate = delegate;
}

- (IBAction)buttonAction:(UIButton *)sender {
    if (_delegate && [_delegate respondsToSelector:@selector(otherButtonCell:button:)]) {
        [_delegate otherButtonCell:self button:sender];
    }
}

@end
